﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace apparatus
{
    public partial class frmMain : Form
    {
        public string str_oprerator;
        public frmMain(string operator1)
        {
            InitializeComponent();
            str_oprerator = operator1;
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            tsoperator.Text = str_oprerator;
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmReceive frmreceive = new frmReceive();
            frmreceive.ShowDialog();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void 录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form mainadd = new main_add();
            mainadd.ShowDialog();
        }

        private void 查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form main_q = new main_query();
            main_q.ShowDialog();
        }

        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form main_e = new main_edit();
            main_e.ShowDialog();
        }

        private void 收货ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmreceive = new frmReceive();
            frmreceive.ShowDialog();
        }

        private void 收发货查询ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form app_q = new app_query ();
            app_q.ShowDialog();
        }

        private void 发货ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form app_o = new app_out();
            app_o.ShowDialog();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            Form app_o = new app_out();
            app_o.ShowDialog();
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void 关于ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form aboutbox1 = new AboutBox1();
            aboutbox1.ShowDialog();
        }
    }
}
